import React, { Component } from 'react'

import {
  Modal
} from 'antd'

import style from './index.less'

export default class App extends Component {
  render () {
    const {
      title,

      children,

      ...rest
    } = this.props

    return (
      <Modal

        wrapClassName = { style['modal'] }

        footer = { null }
        closable = { false }
        maskClosable = { false }
        centered

        { ...rest }
      >
        <div className = 'loading' />
        <div className = { style['title'] }>{ title }</div>
      </Modal>
    )
  }
}
